package com.word.app.utils;

import java.util.List;

import com.fasterxml.jackson.databind.ObjectMapper;

public class Str2Json {
    private static Str2Json ins;
    public static Str2Json get(){
        if(ins==null)
            ins = new Str2Json();
        return ins;
    }

    public List convertList(String cont){
        ObjectMapper mapper = new ObjectMapper();
		try {
			return mapper.readValue(cont, List.class);
		} catch (Exception e) {
            return null;
        }
    }
}
